﻿#define _CRT_SECURE_NO_WARNINGS 1

//编程初学者入门训练第八十二题
//BC84 计算y的值
//https://www.nowcoder.com/practice/61a0f16117484d219b59c62224b33b1c?tpId=107&tqId=33365&rp=1&ru=/exam/oj/ta&qru=/exam/oj/ta&sourceUrl=%2Fexam%2Foj%2Fta%3Fpage%3D2%26tpId%3D107%26type%3D107&difficulty=undefined&judgeStatus=undefined&tags=&title=

#include <stdio.h>

int main() {
    int x = 0;
    int y = 0;

    while (scanf("%d", &x) != EOF) {
        if (x < 0)
            y = 1;
        else if (x > 0)
            y = -1;
        else
            y = 0;

        printf("%d\n", y);
    }
    return 0;
}